﻿import com.dinmax.isolution.*

class DoorEditorGUI
extends DeviceEditorGUI {
	
	private var device:Door;
	private var listener:WindowDeviceGUI;
	
	
	public function getDevice():Door{
		return this.device;
	}
	public function setDevice(newDevice:Door):Void{
		super.setDevice(newDevice);
		return;
	}
		
	public function refresh():Void {
		
		super.refresh();
		
		if(this.device.getValue() == "on"){
			trace("DoorEditorGUI refresh= on");
			this["mcState"].gotoAndStop(1);
		} else {
			trace("DoorEditorGUI refresh= off");
			this["mcState"].gotoAndStop(2);
		}
			
						 
		return;
	}
	
}